<?php
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

jimport('joomla.application.component.model');

/**
 * JWPBlog Edit Model
 *
 * @author	David Neimeyer <davidneimeyer@gmail.com>
 * @package		JWPBlog
 */

class JWPBlogModelEdit extends JWPBlogModel
{
	/**
	 * Category ata array
	 *
	 * @var array
	 */
	var $_data = null;

	/**
	 * Category total
	 *
	 * @var integer
	 */
	var $_total = null;

	/**
	 * Pagination object
	 *
	 * @var object
	 */
	var $_pagination = null;

	/**
	 * Constructor
	 *
	 * @since 1.5
	 */
	function __construct()
	{
		global $mainframe, $option;
		$old_functions_path = JRegistry::getInstance('mojo')->getValue('config.admin_path');		
		$wp_include_path = 	$old_functions_path.DS.'..'.DS.'wp-includes';
		/* //load function files as necessary
		$old_function_files = array('functions','classes');
		foreach($old_function_files as $file){
			if(file_exists($old_functions_path.DS.$file.'.php')){
				require_once($old_functions_path.DS.$file.'.php');
			}elseif(file_exists($wp_include_path.DS.$file.'.php')){
				require_once($wp_include_path.DS.$file.'.php');
			}else{				
				JError::raiseError( '1000', 'Error loading essential file: '.$file.'.php in '.get_class($this));
			}
		}
		*/
		parent::__construct();		
	}
	
}
?>